package com.yeban.javase.day12.demo;

import java.util.function.Consumer;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/22
 */
public class TestConsumer {
    public static void main(String[] args) {
        consumerString(s-> System.out.println(s));
    }
    private static void consumerString(Consumer<String> consumer){
        consumer.accept("hello world");
    }
}
